#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N=1e5;
int n,a[N+5],t[N+5],ans;
signed main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>a[i];
		t[a[i]]++;
	}
	for(int i=1;i<=N;i++){
		if(t[i]>=1){
			ans=max(ans-t[i],(int)0);
			ans+=t[i];
		}
	}
	cout<<ans<<endl;
	return 0;
}
